homework week 12

                Truth
Prediction       top songs 2018 top songs 2019
  top songs 2018             12             11
  top songs 2019              8              9


I found similairites in timbre component c12 and c03 so I included them in a plot where acousticness is also compared by indication of size, which was also found to be a simialirity between the two playlists. The newer playlist is way higher on average when it comes to timbre component c12 then the 2018 playlist that is more clustered towards he low end. When it comes to timbre component c03 there is more of a similairity.

# A tibble: 3 x 3
  .metric  .estimator .estimate
  <chr>    <chr>          <dbl>
1 accuracy binary         0.525
2 kap      binary         0.05 
3 j_index  binary         0.05 

Call:
C5.0.default(x = x, y = y, trials = 1, control = C50::C5.0Control(minCases =
 2, sample = 0))


C5.0 [Release 2.07 GPL Edition]     Sun Mar 22 17:35:38 2020
-------------------------------

Class specified by attribute `outcome'

Read 40 cases (35 attributes) from undefined.data

Decision tree:

acousticness <= -0.7381613: top songs 2019 (6)
acousticness > -0.7381613:
:...c12 > -0.03260516:
    :...instrumentalness <= 0.2902891: top songs 2019 (13/2)
    :   instrumentalness > 0.2902891: top songs 2018 (3)
    c12 <= -0.03260516:
    :...c03 <= 0.5295662: top songs 2018 (12)
        c03 > 0.5295662:
        :...acousticness <= -0.3363651: top songs 2019 (2)
            acousticness > -0.3363651: top songs 2018 (4/1)


Evaluation on training data (40 cases):

        Decision Tree   
      ----------------  
      Size      Errors  

         6    3( 7.5%)   <<


       (a)   (b)    <-classified as
      ----  ----
        18     2    (a): class top songs 2018
         1    19    (b): class top songs 2019


    Attribute usage:

    100.00% acousticness
     85.00% c12
     45.00% c03
     40.00% instrumentalness


Time: 0.0 secs

tempogram for Mean Mr Mustard shows us what tempo the song is in.


Here we get a clear reading that the bpm is 200 together with a bpm harmonic that says 400. From my knowledge of the song I would say that the bpm is around 100bpm with the markings at 200 and 400 both being bpm harmonics. Wrapping into a cyclic tempogram gets rid of this and shows us that the actual tempo is 100bpm which was suspected. The reason for this clean reading is probably the fact that there are drums present throughout the whole track. The song starts of with a drumfill that you can see as a dipp in the begining of both spectograms.

Looking at keys and noticing that Mean Mr Mustard by the beatles doesnt like to get keyprofiled.


Mean Mr Mustard is one of the song with the highest valence in our corpus so lets look at its key structure.

track.name valence
Dive 0.951
Mean Mr Mustard - 2019 Mix 0.915
Lady and Man 0.905
Techno Show 0.899
Tous les garçons et les filles - Slow 0.888

As we can see it is giving use some strange readings since we have both G#m and G in the same section which is very strange. The piece is analysied from bigger segments in order to figure out what key it is in. I will have to further investigate by trying different combinations of normalisations and distances.

On the histogram we see the number of different keys in our corpus together with if its minor or major indicated by colour. Could not get the colour to be either major/minor, will have to look in to that soo I dont have 1000 colour profiles.

What is the SD and Mean Bpm between our playlists?


Here we look at some of the different metrics in between our playlist with popular albums from the 60s/70s and compare it to our popular modern albums. Our goal here is to look at the standard deviation and our mean when it comes to tempo. For investigation I’ve added some more dimensions to the data with Duration in min and volume.

Looking at Timbre Coefficent between both playlists


Looking at this we see that there is actually some difference in timbre between the old and the new which comes to no surprise. Around c02 there is a lot of difference in how the value is concentrated, but we also see similairites in the values above c06.

Tom Mish followed me throughout the years so lets look at the timbre of the song


This song is pretty repeatative so there is not much to say when it comes to the change in timbre. However the changes we do see tells us something about the different segments in the song. This is especially clear in the self similairity matric. Maybe the attractiveness of this song is its clear structure and repeatative nature that made it stick with me throughout 2018 and 2019. Although his guitarplaying also plays a big role.

Introduction

I Will look at the differences between the playlist that spotify made for me showcasing the 100 songs I listened to the most in 2018 and 2019. I will look at Bpm, create different types of chromagrams etc to figure out how my music taste varid between the years and what we can see about how spotify clusters songs.

Looks like I danced less, atleast listed to less danceable music


Here we can clearly see that the songs from 2019 are more spread out and differ more in danceabilty whereas in the 2018 playlist the dots are more clustered towards higher values in danceability.

track.name valence
Dive 0.951
Mean Mr Mustard - 2019 Mix 0.915
Lady and Man 0.905
Techno Show 0.899
Tous les garçons et les filles - Slow 0.888

Chromagram


This is a chromagram of the song lost in paris by Tom Misch

Conclusion

Fill in when you have all the necessary information and data